package sessionbeans;

import javax.ejb.Remote;
import entities.RegisteredUser;
import java.util.List;

@Remote
public interface SearchBeanRemote {

	/**
	 * 
	 * @param userId the user's id
	 * @param ability the specified ability
	 * @return a list of all friends of the user who declare the specified ability
	 */
	List<RegisteredUser> searchOnFriends(String userId, String ability);
	
	/**
	 * 
	 * @param ability the specified ability
	 * @return a list of all users in the system who declare the specified ability
	 */
	List<RegisteredUser> searchOnAll(String ability);
	
	/**
	 * 
	 * @param name the specified name
	 * @return a list of all users in the system with the specified name
	 */
	List<RegisteredUser> searchByName(String name);
}
